import request from '@/utils/request'

// 查询渠道断面信息登记列表
export function listStCrossB(query) {
  return request({
    url: '/datam/StCrossB/list',
    method: 'get',
    params: query
  })
}

// 查询渠道断面信息登记列表
export function allListStCrossB(query) {
  return request({
    url: '/datam/StCrossB/allList',
    method: 'get',
    params: query
  })
}

// 查询渠道断面信息登记详细
export function getStCrossB(crossCd) {
  return request({
    url: '/datam/StCrossB/' + crossCd,
    method: 'get'
  })
}

// 新增渠道断面信息登记
export function addStCrossB(data) {
  return request({
    url: '/datam/StCrossB',
    method: 'post',
    data: data
  })
}

// 修改渠道断面信息登记
export function updateStCrossB(data) {
  return request({
    url: '/datam/StCrossB',
    method: 'put',
    data: data
  })
}

// 删除渠道断面信息登记
export function delStCrossB(crossCd) {
  return request({
    url: '/datam/StCrossB/' + crossCd,
    method: 'delete'
  })
}
